package com.wnn.demo.model.task.service.impl;

import com.wnn.demo.domain.Accessory;
import com.wnn.demo.model.task.mapper.AccessoryFileMapper;
import com.wnn.demo.model.task.service.AccessoryService;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@AllArgsConstructor
public class AccessoryServiceImpl implements AccessoryService {

	private AccessoryFileMapper accessoryFileMapper;
	@Override
	public void saveFile(Accessory accessory) {
		accessoryFileMapper.saveFile(accessory);
	}

	@Override
	public List<Accessory> findFile(String id) {
		return accessoryFileMapper.findFile(id);
	}

	@Override
	public void deletedOne(String id) {
		accessoryFileMapper.deleteOne(id);
	}
}
